﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.BookStore.PurchaseDto.ReceiptOrderDto
{
    public interface IReceiptOrderService : ICrudAppService<
        ReceiptOrderDto,
        Guid,
        PagedAndSortedResultRequestDto,
        CreateUpdateReceiptOrderDto>
    {
        Task<ListResultDto<CustomerDropdownDto>> GetCustomerDropdownListAsync();
        
        /// <summary>
        /// 根据条件查询收货单
        /// </summary>
        Task<PagedResultDto<ReceiptOrderDto>> GetListByConditionsAsync(ReceiptOrderQueryDto input);
    }

    public class CustomerDropdownDto
    {
        public Guid Id { get; set; }
        public string ProductName { get; set; }
    }
}
